<?php
class GuildShareInfoVo extends SzAbstractMySqlVo
{

    private $userId;
    private $position;
    private $flowerId;
    private $count;
    private $times;
    private $updateTime;

    /**
     * Initialize GuildShareInfoVo.
     *
     * @param $userId
     * @param $position
     * @param $flowerId
     * @param $count
     * @param $times
     * @param $updateTime
     * @param boolean $isInsert default false, means for now this vo is initialized not for insert process
     * @return GuildShareInfoVo
     */
    public function __construct($userId, $position, $flowerId, $count, $times, $updateTime, $isInsert = false) {
        $this->userId = $userId;
        $this->position = $position;
        $this->flowerId = $flowerId;
        $this->count = $count;
        $this->times = $times;
        $this->updateTime = $updateTime;

        $this->isInsert = $isInsert;
        $this->voClassName = 'GuildShareInfoVo';
        $this->ormName = 'GuildShareInfo';
    }

    /**
     * @see SzAbstractVo::toArray
     */
    public function toArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'position' => $this->getPosition(),
            'flowerId' => $this->getFlowerId(),
            'count' => $this->getCount(),
            'times' => $this->getTimes(),
            'updateTime' => $this->getUpdateTime(),
        );
    }

    /**
     * @see SzAbstractVo::toEntireArray
     */
    public function toEntireArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'position' => $this->getPosition(),
            'flowerId' => $this->getFlowerId(),
            'count' => $this->getCount(),
            'times' => $this->getTimes(),
            'updateTime' => $this->getUpdateTime(),
        );
    }

    /**
     * @see SzAbstractVo::toPureArray
     */
    public function toPureArray()
    {
        return array(
            $this->getUserId(),
            $this->getPosition(),
            $this->getFlowerId(),
            $this->getCount(),
            $this->getTimes(),
            $this->getUpdateTime(),
        );
    }

    public function getUserId()
    {
        return $this->userId;
    }

    public function setUserId($val)
    {
        $this->saveColumnStatus(0, $this->userId);
        $this->userId = $val;
    }

    public function getPosition()
    {
        return $this->position;
    }

    public function setPosition($val)
    {
        $this->saveColumnStatus(1, $this->position);
        $this->position = $val;
    }

    public function getFlowerId()
    {
        return $this->flowerId;
    }

    public function setFlowerId($val)
    {
        $this->saveColumnStatus(2, $this->flowerId);
        $this->flowerId = $val;
    }

    public function getCount()
    {
        return $this->count;
    }

    public function setCount($val)
    {
        $this->saveColumnStatus(3, $this->count);
        $this->count = $val;
    }

    public function getTimes()
    {
        return $this->times;
    }

    public function setTimes($val)
    {
        $this->saveColumnStatus(4, $this->times);
        $this->times = $val;
    }

    public function getUpdateTime()
    {
        return $this->updateTime;
    }

    public function setUpdateTime($val)
    {
        $this->saveColumnStatus(5, $this->updateTime);
        $this->updateTime = $val;
    }

}